import request from '@/utils/request'

// 查询科技新闻列表
export function listScienNews(query) {
  return request({
    url: '/tcsp/scienNews/list',
    method: 'get',
    params: query
  })
}

// 查询科技新闻详细
export function getScienNews(id) {
  return request({
    url: '/tcsp/scienNews/' + id,
    method: 'get'
  })
}

// 新增科技新闻
export function addScienNews(data) {
  return request({
    url: '/tcsp/scienNews',
    method: 'post',
    data: data
  })
}

// 修改科技新闻
export function updateScienNews(data) {
  return request({
    url: '/tcsp/scienNews',
    method: 'put',
    data: data
  })
}

// 删除科技新闻
export function delScienNews(id) {
  return request({
    url: '/tcsp/scienNews/' + id,
    method: 'delete'
  })
}
